package task12;

import com.sun.org.apache.bcel.internal.generic.NEW;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/13 8:57
 * @description:
 */
public class ShapeTest {

   public static void main(String[]args){
     // 利用多态创建对象
     Shape s1= new Triangle(3.5,5);
    /* s1.output();*/
     Shape s2= new Circle(4.5);

     Manager manager = new Manager();
     manager.output(s1);
     manager.output(s2);
   }

}
